package com.shopping.ware.feign;

import com.shopping.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Europa
 */
@FeignClient("product")
public interface ProductFeignService {

    /*
    给后台发送
    @FeignClient("product")
    @@RequestMapping("/product/skuinfo/info/{skuId}")

    给网关发
    @FeignClient("gateway")
    @RequestMapping("/api/product/skuinfo/info/{skuId}")
     */
    /**
     * 远程查询实体
     *
     * @param skuId sku_id
     * @return
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);;
}
